package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 规格值表
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopSpecValueSaveDTO", description = "规格值表")
public class ShopSpecValueSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 所属规格id
     */
    @ApiModelProperty(value = "所属规格id")
    @NotNull(message = "所属规格id不能为空")
    private Long specId;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sortOrder;
    /**
     * 规格值
     */
    @ApiModelProperty(value = "规格值")
    @NotEmpty(message = "规格值不能为空")
    @Length(max = 255, message = "规格值长度不能超过255")
    private String specValue;
    /**
     * 规格描述
     */
    @ApiModelProperty(value = "规格描述")
    @Length(max = 1000, message = "规格描述长度不能超过1000")
    private String remark;
    /**
     * 所属商品id
     */
    @ApiModelProperty(value = "所属商品id")
    private Long productId;
    /**
     * 规格值类型 1-系统添加 2-商户添加
     */
    @ApiModelProperty(value = "规格值类型 1-系统添加 2-商户添加")
    private Integer type;

}
